import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
// import '@/utils/scale.js'
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
// import '@/permission'
import '@/assets/css/index.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as filters from './filter'
import element from 'element-plus'
import 'dayjs/locale/zh-cn' //中文
import locale from 'element-plus/lib/locale/lang/zh-cn' //中文
const app = createApp(App)
app.use(router)
app.use(store)
app.use(element, { locale })
app.component('svg-icon', SvgIcon)
app.config.globalProperties.$filters = filters;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')